<template>
  <div class="apiSet">
   <div class="apiSet-title">API设置</div>
    <div class="apiSet-content">
      <img src="@/assets/images/apiIMG.png"/>
      <div class="content-big">您还未开通API服务</div>
      <div class="content-tips">还未开通API服务权限或已到期，请先 <el-popover
        placement="bottom"
        width="200"
        trigger="click"
      >
        <div class="content"><img src="@/assets/images/kefu.png"/>微信扫码添加客服</div>
        <el-button slot="reference" type="text">联系客服开通</el-button>
      </el-popover></div>
    </div>
  </div>
</template>
<script>
export default {
  name: "apiSet"
}
</script>
<style scoped lang="scss">
.apiSet {
  margin: 12px 16px;
  min-width: 1000px;
  background: #fff;
  padding: 12px;
  position: relative;
  .apiSet-title {
    padding: 8px 0;
    padding-bottom: 20px;
  }
  .apiSet-content {
    display: flex;
    padding: 20px;
    padding-left: 100px;
    flex-direction: column;
    min-height: 72px;
    background: #f7f7f7;
    border-radius: 6px;

    img {
      width: 72px;
      height: 72px;
      position: absolute;
      left: 30px;
    }
    .content-big {
      font-size: 16px;
      font-weight: 600;
      color: rgba(0, 0, 0, .85);
      line-height: 24px;
      margin-top: 10px;
    }
    .content-tips {
      font-size: 14px;
      font-weight: 400;
      color: rgba(0, 0, 0, .45);
      line-height: 22px;
      margin-top: 6px;
    }
  }
}
.content {
  width: 150px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  text-align: center;
  img {
    width: 150px;
    height: 150px;
    margin-bottom: 10px;
  }
}
</style>
